home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / • Extras • / SGI STL / bool.h < prev    next >
C/C++ Source or Header  |  1997-09-01  |  3KB  |  94 lines

  1. /*
  2.  *
  3.  * Copyright (c) 1994
  4.  * Hewlett-Packard Company
  5.  *
  6.  * Permission to use, copy, modify, distribute and sell this software
  7.  * and its documentation for any purpose is hereby granted without fee,
  8.  * provided that the above copyright notice appear in all copies and
  9.  * that both that copyright notice and this permission notice appear
  10.  * in supporting documentation.  Hewlett-Packard Company makes no
  11.  * representations about the suitability of this software for any
  12.  * purpose.  It is provided "as is" without express or implied warranty.
  13.  *
  14.  * Copyright (c) 1997
  15.  * Silicon Graphics
  16.  *
  17.  * Permission to use, copy, modify, distribute and sell this software
  18.  * and its documentation for any purpose is hereby granted without fee,
  19.  * provided that the above copyright notice appear in all copies and
  20.  * that both that copyright notice and this permission notice appear
  21.  * in supporting documentation.  Silicon Graphics makes no
  22.  * representations about the suitability of this software for any
  23.  * purpose.  It is provided "as is" without express or implied warranty.
  24.  *
  25.  * Copyright (c) 1997
  26.  * Moscow Center for SPARC Technology
  27.  *
  28.  * Permission to use, copy, modify, distribute and sell this software
  29.  * and its documentation for any purpose is hereby granted without fee,
  30.  * provided that the above copyright notice appear in all copies and
  31.  * that both that copyright notice and this permission notice appear
  32.  * in supporting documentation.  Moscow Center for SPARC Technology makes no
  33.  * representations about the suitability of this software for any
  34.  * purpose.  It is provided "as is" without express or implied warranty.
  35.  *
  36.  */
  37.  
  38.  
  39. #ifndef __SGI_STL_BOOL_H
  40. # define __SGI_STL_BOOL_H
  41.  
  42. // include compiler settings
  43. # include <stlconf.h>
  44.  
  45. // some final tweaking ( should not be in stlconf.h to avoid
  46. // clobbering by configure
  47.  
  48. # if ! defined ( __STL_NAMESPACES )
  49. #  define __STL_NO_NAMESPACES 1
  50. # endif 
  51.  
  52. # if ! defined ( __STL_USE_EXCEPTIONS )
  53. #  define __STL_NO_EXCEPTIONS 1
  54. # endif 
  55.  
  56. # if defined ( __STL_NO_EXCEPTIONS )
  57. #  undef __STL_USE_EXCEPTIONS
  58. # endif 
  59.  
  60. #if defined  (__STL_WIN32THREADS) && !defined (_NOTHREADS) ¥
  61.  && !defined(__STL_USE_MALLOC) && !defined (__STL_USE_NEWALLOC) && !defined (__STL_BOOL_KEYWORD) 
  62. #   define __STL_WINDOWS_H_INCLUDED
  63. #   define NOMINMAX
  64. #   include <windows.h>
  65. #   undef min
  66. #   undef max
  67. //  This must precede bool.h
  68. #endif
  69.  
  70. # if defined(__STL_YVALS_H)
  71. #  include <yvals.h>
  72. # else
  73. #  if ! defined(__STL_BOOL_KEYWORD)
  74. #   if defined (__STL_RESERVED_BOOL_KEYWORD)
  75. #    define bool int
  76. #   else
  77.      typedef int bool;
  78. #   endif
  79. #    define true 1
  80. #    define false 0
  81. #  endif /* __STL_BOOL_KEYWORD */
  82. # endif
  83.  
  84. # undef __STL_BOOL_KEYWORD
  85. # undef __STL_RESERVED_BOOL_KEYWORD
  86. # undef __STL_YVALS_H
  87. # undef __STL_LOOP_INLINE_PROBLEMS
  88. # undef __STL_TYPENAME
  89. # undef __STL_EXPLICIT
  90. # undef __AUTO_CONFIGURED
  91. # undef __STL_FULL_SPEC_SYNTAX
  92.  
  93. #endif /* HPSTL_BOOL_H */
  94.